/*
 * An XML document type.
 * Localname: Delete
 * Namespace: http://www.omg.org/XMI
 * Java type: org.omg.xmi.DeleteDocument
 *
 * Automatically generated - do not modify.
 */
package org.omg.xmi.impl;
/**
 * A document containing one Delete(@http://www.omg.org/XMI) element.
 *
 * This is a complex type.
 */
public class DeleteDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.omg.xmi.DeleteDocument
{
    private static final long serialVersionUID = 1L;
    
    public DeleteDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName DELETE$0 = 
        new javax.xml.namespace.QName("http://www.omg.org/XMI", "Delete");
    
    
    /**
     * Gets the "Delete" element
     */
    public org.omg.xmi.Delete getDelete()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.omg.xmi.Delete target = null;
            target = (org.omg.xmi.Delete)get_store().find_element_user(DELETE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "Delete" element
     */
    public void setDelete(org.omg.xmi.Delete delete)
    {
        generatedSetterHelperImpl(delete, DELETE$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "Delete" element
     */
    public org.omg.xmi.Delete addNewDelete()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.omg.xmi.Delete target = null;
            target = (org.omg.xmi.Delete)get_store().add_element_user(DELETE$0);
            return target;
        }
    }
}
